package com.neo.rabbit.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class ConsumerDemo
{
    @RabbitListener(queues = "direct.A")
    @RabbitHandler
    public void processtopicA(String hello)
    {
        System.out.println("Receiver Exchanges direct.A  ===================: " + hello);
    }
    
    @RabbitListener(queues = "direct.B")
    @RabbitHandler
    public void processtopicB(String hello)
    {
        System.out.println("Receiver Exchanges direct.B  ===================: " + hello);
    }
}